import Vue from 'vue'
import VueRouter from 'vue-router'
import home from '../components/home.vue'
import target from '../components/target.vue'
import order from '../components/order.vue'
import My from '../components/my.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/home',
    component: home
  },
  {
    path: '/target',
    component: target
  },
  {
    path: '/order',
    component: order
  },
  {
    path: '/my',
    component: My
  },
]

const router = new VueRouter({
  routes
})

export default router
